#include "io78f0500_30.h"
#include "Source/definition.h"
#include "Source/adc.h"
#include "Source/uart.h"
#include "stdio.h"
#include "string.h"

void main(void)
{ 
  exClock(); 
  UARTinit();

  char *value;
  ADCinput(3);
  startADC;
  int i = 0;
  while(1)
  { 
   float num=ADCvalue(); 
   sprintf (value, "Messwert: %2.2f  ***************\n", num);
   if(i >= 50)
   {
   UARTsend_s(value);
   //UARTsend(0x55);
   P1_bit.no0 = !P1_bit.no0; 
   i = 0;
   }
   else
     i++;
  } 

} 
